﻿#ifndef DOWNLOADFILERESULTFUNC_H
#define DOWNLOADFILERESULTFUNC_H

#include <QObject>
#include "BaseFunc.h"
#include "DataType/PortStruct.h"

class DownloadFileResultFunc  : public BaseFunc
{
    Q_OBJECT
public:
    explicit DownloadFileResultFunc(QObject *parent = 0);
    enum {FunctionCode = DeviceFuntionCode::DownloadFileResult};

    PortStruct target() const;
    void setTarget(const PortStruct &target);

    int result() const;
    void setResult(int result);

private:
    PortStruct m_target;
    int m_result;

};

#endif // DOWNLOADFILERESULTFUNC_H
